/**
 * main.c
 *
 * Test EggClockFace in a GtkWindow
 *
 * (c) 2005, Davyd Madeley
 *
 * Authors:
 *   Davyd Madeley <davyd@madeley.id.au>
 */

#include <gtk/gtk.h>

#include "clock.h"

int
main (int argc, char **argv)
{

  /* declaring 2 widgets, one for the main window, another for a clock */
  GtkWidget *window;
  GtkWidget *clock;
  
  /* initialization of gtk, got the options passed at command line */
  gtk_init (&argc, &argv);

  /* create a gtk window with full decoration (not a popup window) */
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  
  clock = egg_clock_face_new ();
  gtk_container_add (GTK_CONTAINER (window), clock);
  
  g_signal_connect (window, "destroy",
		    G_CALLBACK (gtk_main_quit), NULL);
  
  gtk_widget_show_all (window);
  
  gtk_main ();
}
